<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<jsp:directive.page import="webservices.helper.Helper"/>
<style>
html,body {min-height:101%}
#main {
	border: 1px solid #EEE;
}
.topBanner {
	width: 100%;
	height: 50px;
	background-color: lightgreen;
	position: relative;
}
.userinfo {
	position: absolute;
	right: 0px;
	top: 0px;
	width: 200px;
	height: 100%;
	margin-right: 10px;
	text-align: right;
	line-height: 25px;
}
span.courseDetail,
span.slideManage {
	display: none;
}
.topBanner.home .home,
.topBanner.course .course,
.topBanner.slideManage .slideManage,
.topBanner.courseDetail .courseDetail,
.topBanner.courseManage .courseManage {
	border-bottom: 5px solid darkgreen;
	display: inline;
}
.topBanner a {
	text-decoration: none;
}
.topBanner > span {
	font-size: 18px;
	padding: 9px;
}
</style>    
    
<div class="topBanner <%=request.getParameter("page")%>">
	<div class="userinfo">
		欢迎您，<span style="color:green"><%=request.getSession().getAttribute("userName")%></span><br>
		<a href="login.jsp">注销登录</a>
	</div>
	<span class="home" style="line-height: 50px;height:50px;"><a style="color:black;" href="home.jsp">我的主页</a></span>
	<span class="course" style="line-height: 50px;height:50px;"><a style="color:black;" href="course.jsp">查看所有课程</a></span>
	<span class="courseDetail" style="line-height: 50px;height:50px;">课程：<%=Helper.decodeUtf8(request.getParameter("courseName"))%></span>
	<span class="slideManage" style="line-height: 50px;height:50px;">课件管理：<%=Helper.decodeUtf8(request.getParameter("courseName"))%></span>
	<% if ("admin".equalsIgnoreCase((String)request.getSession().getAttribute("identity"))) {%>
	<span class="courseManage" style="line-height: 50px;height:50px;"><a style="color:black;" href="coursemanage.jsp">课程管理</a></span>
	<% }%>
</div>